package com.bnz.portal.client;

import com.bnz.common.entity.R;
import org.springframework.stereotype.Component;

/**
 * 处理熔断的类
 */
@Component
public class UserClientFallBack implements UserClient{

	@Override
	public R findAll() {
		return R.error("对不起，不能访问bnz-user模块!");
	}
	@Override
	public R findById(String id) {
		return R.error("对方bnz-user模块忙！");
	}
}